<?php

namespace app\api\controller\v1_web;

use app\common\controller\Frontend;
use think\Db;

/**
 * 文章模块
 */
class WebService extends Frontend
{
    protected $noNeedRight = ['protocol', 'about'];
    protected $noNeedLogin = '*';

    public function protocol() {
        $content = Db::name('self_article')->where(['id' => 2])->value('content');

        return view('v1_web/web',['content'=>$content]);
    }


    public function about() {
        $content = Db::name('self_article')->where(['id' => 1])->value('content');

        return view('v1_web/web',['content'=>$content]);
    }

    public function news($id = 0) {
        $content = Db::name('self_news')->where(['id' => $id])->value('content');

        return view('v1_web/news',['content'=>$content]);
    }

}
